﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Edit.Master" AutoEventWireup="true" CodeBehind="OliSearchArchiveEdit.aspx.cs" Inherits="Web.Views.ArchiveManage.OliSearchArchiveEdit" %>

<%@ Register Src="../../UserControls/AttachmentManager.ascx" TagName="AttachmentManager"
    TagPrefix="uc1" %>
<asp:Content ID="Content4" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript" src="../../Javascript/UserControls.js"></script>
<script type="text/javascript">
    $(function () {
        var id = $("#ctl00_edit_h_arcvhive").val();
        var type = $("#ctl00_edit_h_archiveType").val();
        $("#btnAddPageFile").click(function () {
            var url;
            if (id == "") {
                url = "PageFileEdit.aspx?archiveType=" + type + "";
            }
            else {
                var url = "PageFileEdit.aspx?archiveType=" + type + "";
            }
            var child = window.open(url, "新建卷内件");
        });
        $("#btnAppendPageFile").click(function () {
            var url = "PageFileList.aspx?archiveType=" + type + "";
            var child = window.open(url, "添加现有键");
        });
        $("#ctl00_edit_btnRemovePageFile").click(function () {
            $("#ctl00_edit_d1").click();
        });
        $("#ctl00_edit_btnDeletePageFile").click(function () {
            $("#ctl00_edit_Button1").click();
        });
    });

    //改变排序
    function ChangeOrder(name, type, ev) {
        ev = ev || window.event; // 事件                  
        var target = ev.target || ev.srcElement; // 获得事件源
        var valueTag = $(target).parent().next();
        var value = parseInt(valueTag.text());
        if (type == "up") {
            value++;
            setCookie(name, value);
        }
        else {
            if (value > 0) {
                value--;
            }
            setCookie(name, value);
        }
        valueTag.text(value);
    }

    //查看详情
    function openViewPage(url) {
        window.open(url, "查看详情");
    }

   
</script>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="button" runat="server">
    <div class="toolbar2">
        <button type="button" class="sexybutton" runat="server" id="btnAddArchiveBack" onserverclick="btnAddArchiveBack_Click"><span><span><span class="add">保存并返回</span></span></span></button>
                <button type="reset" id="btnAddArchive" class="sexybutton"  runat="server" onserverclick="btnAddArchive_Click"><span><span><span class="edit">保存继续录入</span></span></span></button>
        <button type="button" class="sexybutton" runat="server" id="btnBack" onserverclick="btnBack_Click"><span><span><span class="transfer">返回</span></span></span></button>
      </div>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="edit" runat="server">
<div style=" margin:10px; margin-right:10px;">
<fieldset>
<legend>著录项信息 <%=archiveTypeName %>
</legend>
<div>
<table cellpadding="0" cellspacing="0" width="100%" class="editTable">
<tr>
<th style="width:12%">档号</th><td style="width:20%"><asp:TextBox ID="txtArchiveNum" runat="server" Width="98%"></asp:TextBox></td>
<th style="width:12%">临时序号</th><td  style="width:20%"><asp:TextBox ID="txtTempOrderNum" runat="server" Width="98%"></asp:TextBox></td>
<th style="width:12%">来源</th><td><asp:TextBox ID="txtArchiveSource" runat="server" Width="98%"></asp:TextBox></td>
</tr>
<tr>
<th>全宗号</th><td><asp:TextBox ID="txtFullFondsNum" runat="server" Width="98%"></asp:TextBox></td>
<th><span class="require_info">*</span>题名</th><td colspan="3"><asp:TextBox ID="txtTitle" runat="server" Width="98%" TextMode="MultiLine" Rows="3"></asp:TextBox></td>
</tr>
<tr>
<th>类别号</th><td><asp:TextBox ID="txtArchiveType" runat="server" Width="98%"></asp:TextBox>
<asp:HiddenField ID="h_ArchiveTypeId" runat="server" />
</td>
<th><span class="require_info">*</span>责任者</th><td><asp:TextBox ID="txtPublisher" runat="server" class="required" Width="98%"></asp:TextBox></td>
<th><span class="require_info">*</span>归档单位</th><td><asp:TextBox ID="txtFileOrgName" runat="server" class="required" Width="98%"></asp:TextBox>
<asp:HiddenField ID="h_FileOrgID" runat="server" />
</td>

</tr>
<tr>
<th></th><td></td>
<th><span class="require_info">*</span>文件日期</th><td><asp:TextBox ID="txtPublishTime" runat="server" class="easyui-datebox "  Width="160px"></asp:TextBox></td>
<th><span class="require_info">*</span>密级</th><td><asp:DropDownList ID="ddlSecurity" runat="server" Width="160px" class="easyui-combobox "  editable="false" ></asp:DropDownList></td>

</tr>
<tr>
<th><span class="require_info">*</span>保管期限</th><td><asp:DropDownList ID="ddlKeepTime" runat="server" Width="160px" class="easyui-combobox "  editable="false" ></asp:DropDownList></td>
<th><span class="require_info">*</span>载体类型</th><td><asp:DropDownList ID="ddlCarrierType" runat="server" Width="160px" class="easyui-combobox "  editable="false" ></asp:DropDownList></td>

<th><span class="require_info">*</span>保密期限</th><td><asp:DropDownList ID="ddlKeepSecurityTime" runat="server" Width="160px" class="easyui-combobox "  editable="false" ></asp:DropDownList></td>
</tr>
<tr>
<th><span class="require_info">*</span>页数</th><td><asp:TextBox ID="txtPageNum" runat="server" class="required number" Width="98%" MaxLength="5"></asp:TextBox></td>
<th>正本数量</th><td><asp:TextBox ID="txtMainBodyNum" runat="server" class="number" MaxLength="5" Width="98%"></asp:TextBox></td>
<th></th><td></td>
</tr>
<div id="div_Zonghe" runat="server">

</div>
<div id="div_Well" runat="server">
<tr>
<th>副本数量</th><td><asp:TextBox ID="txtDOPLICATEBODYNUM" runat="server" Width="98%" TextMode="SingleLine"  Columns="20"></asp:TextBox></td>
<th>地区名</th><td  colspan="3"><asp:TextBox ID="txtWELLADDRESS" runat="server" Width="98%"></asp:TextBox></td>
</tr>
<tr>
<th>井号</th><td colspan="3"><asp:TextBox ID="txtWELLNUMBER" runat="server" Width="98%" TextMode="SingleLine" Rows="3" Columns="20"></asp:TextBox></td><th>类别</th><td><asp:DropDownList ID="ddlCatagoryType" runat="server" Width="160px" class="easyui-combobox "  editable="false"></asp:DropDownList></td>
</tr>
<tr>
<th>井别</th><td colspan="3"><asp:TextBox ID="txtWELLTYPE" runat="server" Width="98%" TextMode="SingleLine" Rows="3" Columns="20"></asp:TextBox></td>
</tr>
</div><tr>
<th>文件编号</th><td><asp:TextBox ID="txtFileNum" runat="server" Width="98%"></asp:TextBox></td>
<th>提要</th><td colspan="3"><asp:TextBox ID="txtSummary" runat="server" Width="98%" TextMode="MultiLine" Rows="3" Columns="20"></asp:TextBox></td>
</tr>
<tr>
<th>备注</th><td colspan="3"><asp:TextBox ID="txtRemark" runat="server" Width="98%" TextMode="MultiLine" Rows="3" Columns="20"></asp:TextBox></td>
</tr>
<tr>
<th>存放位置</th><td colspan="3"><asp:TextBox ID="txtStorageType" runat="server" Width="98%"></asp:TextBox></td>
<th>互见号</th><td><asp:TextBox ID="txtHujianhao" runat="server" Width="98%"></asp:TextBox></td>
</tr>
</table>
</div>
</fieldset>
<fieldset>
  <legend>装盒信息</legend>
  <table width="100%" cellpadding="0" cellspacing="0" class="editTable">
  <tr>
  <th  style="width:12%">盒号</th><td><asp:TextBox ID="txtBoxNum" runat="server" Width="140px" ></asp:TextBox></td>
  </tr>
  </table>

  </fieldset>
  <fieldset>
  <legend>扩展信息</legend>
  </fieldset>
  <fieldset>
  <legend>上交分发</legend>
  </fieldset>
  <uc1:AttachmentManager ID="attachArchive"  AttachmentDBHelperString="oilsearch"   runat="server"  />

  <h3>审核进度</h3>
  <ep:EPGridView ID="gv_AprroveView" runat="server" Width="100%"></ep:EPGridView>
  <asp:HiddenField ID="h_arcvhive" runat="server" />
  <asp:HiddenField ID="h_archiveType" runat="server" />
  <!--接收到的卷内件数据-->
  <asp:HiddenField ID="h_PageFileData" runat="server" />
  <asp:Button ID="hidBtn" runat="server" OnClick="btnHid_Click"  style=" display:none;" />
   <asp:HiddenField ID="hiddenCurrentFlowName" runat="server" Value="移交" />
   <asp:HiddenField ID="hiddenCurrentStatusName" runat="server" Value="录入中" />
  </div>
</asp:Content>

